<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登陆</title>
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <link rel="stylesheet" href="css/admin.css" media="all">
    <link rel="stylesheet" href="css/login.css" media="all">
    <link rel="stylesheet" href="css/myLayui.css">
</head>
<body>
        <div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="display: none;">
                <form class="layui-form" action="us.do?op=login" method="POST">
                <div class="layadmin-user-login-main">
                  <div class="layadmin-user-login-box layadmin-user-login-header">
                    <h2>账号登陆</h2>
                    <p>欢迎进入悦舍生活租客管理系统</p>
                    
                  </div>
                  <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
                    <div class="layui-form-item">
                      <label class="layadmin-user-login-icon layui-icon layui-icon-username" for="LAY-user-login-username"></label>
                      <input type="text" name="username" id="username" lay-verify="required" placeholder="用户名" class="layui-input">
                    </div>
                    <div class="layui-form-item">
                      <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-password"></label>
                      <input type="password" name="userpwd" id="userpwd" lay-verify="required" placeholder="密码" class="layui-input">
                   <input type="hidden" name="op" value="login">

                    </div>
                    <div class="layui-form-item" style="margin-bottom: 20px;">
                      <input type="checkbox" name="ck-remember" id="ck-remember"  value="ck-remember" lay-skin="primary" title="记住密码">
                      <a href="forget.html" class="layadmin-user-jump-change layadmin-link" style="margin-top: 7px;">忘记密码？</a>
                    </div>
                    <div class="layui-form-item">
                      <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="LAY-user-login-submit" id="btn">登 录</button>
                    </div>
                    <div class="layui-trans layui-form-item layadmin-user-login-other">
                      <label>社交账号登入</label>
                      <a href="javascript:;"><i class="layui-icon layui-icon-login-qq"></i></a>
                      <a href="javascript:;"><i class="layui-icon layui-icon-login-wechat"></i></a>

                      <a href="javascript:;"><i class="layui-icon layui-icon-login-weibo"></i></a>
                      <a href="reg.jsp" class="layadmin-user-jump-change layadmin-link">注册帐号</a>

                    </div>
                  </div>
                </div>
                </form>
                
                <div class="layui-trans layadmin-user-login-footer">             
                  <p>© 2019 YueShe Life By JJA1909</p>
                  <p>
                    <span><a href="index.jsp" target="_blank">进入主页</a></span>
                  </p>
                </div>

                
              </div>
              <script src="layui/layui.js"></script>  
                <script>
                //Demo
                layui.use('form', function(){
                var form = layui.form;
                
                
                //监听提交
                form.on('submit(formDemo)', function(data){
                    layer.msg(JSON.stringify(data.field));
                    return false;
                });
                });
                </script>

</body>

	  <!-- 登入失败弹窗提示0 -->
	<% if(request.getAttribute("defeat0")!=null){
	  %>
	  <script type="text/javascript">
	  layui.use('layer', function(){
		  var layer = layui.layer;
		  layer.msg('登入失败，用户名或密码输入错误！');
		});  

	</script>
 <% 
  }%>
  
  
  	  <!-- 登入失败弹窗提示01 -->
	<% if(request.getAttribute("defeat01")!=null){
	  %>
	  <script type="text/javascript">
	  layui.use('layer', function(){
		  var layer = layui.layer;
		  layer.msg('当前用户注册未通过审核，请联系管理员！');
		});  

	</script>
 <% 
  }%>



</html>